<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>用友在线运维我的问题</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <script src="static/sool/js/global.js"></script>
  <script>
    JsAndCssUtil.importCss("/static/css/amazeui");
    JsAndCssUtil.importCss("/static/css/font-awesome");
    JsAndCssUtil.importCss("/static/css/font-glyphicons");
    JsAndCssUtil.importCss("/static/sool/style/basic");
    JsAndCssUtil.importCss("/static/sool/style/myProblem");
  </script>

</head>
<body>

<!--头部logo与我要提问的显示-->
<div id="ContainerId">
  <script type="text/javascript">
    renderNavBar();
  </script>
</div>

<div class="am-g am-g-fixed blog-g-fixed">
  <div class="am-u-md-8">
    <article>

      <h3 class="am-article-title blog-title">
        <p class="am-danger"><i class="fa fa-comments am-icon-sm am-danger"></i> 我的问题</p>
      </h3>
      <ul class="am-nav am-nav-pills" id="subMyQuestionList">
        <li class="am-active" id="a-all"><a href="#s0">全部</a></li>
        <li  id="a-unanswer"><a href="#s1">待解答</a></li>
        <li  id="a-handling"><a href="#s2">待处理</a></li>
        <li  id="a-solved"><a href="#s3">已解决</a></li>
      </ul>
    </article>

    <hr class="am-divider blog-hr am-hrjanju">

    <article data-am-scrollspy="{animation:'slide-left', repeat: false}" id="myQuestionList">

    </article>



    <ul class="am-pagination am-pagination-centered" id="pagemes">

    </ul>
  </div>

  <div class="am-u-md-4 blog-sidebar">
    <div class="am-panel-group">
      <section class="am-panel am-panel-default" data-am-scrollspy="{animation: 'scale-up', repeat: false}">
        <div class="am-panel-hd"><i class="fa fa-bars am-time"></i> <span class="am-panel-hd-text">精华问题</span></div>
        <div class="am-panel-bd" id="xsQuestionList">
        </div>
      </section>
    </div>
  </div>

</div>
<footer class="am-margin-top doc-footer-color">
  <hr/>
  <p class="am-text-center">
    <small>
      @copy;2015用友能源科技有限公司版权所有 京ICP备15038140号-1   官方微博   用户协议
    </small>
  </p>
</footer>

<script type="text/javascript">
  JsAndCssUtil.importJs("/static/sool/js/jquery");
  JsAndCssUtil.importJs("/static/js/amazeui.min");
  JsAndCssUtil.importJs("/static/js/handlebars.min");
  /*加载logo和NAV和search*/

  JsAndCssUtil.importJs("/static/sool/js/nav");

  /*加载引入公共的useID的文件*/
  JsAndCssUtil.importJs("/static/sool/data/bindingData");
  JsAndCssUtil.importJs("/static/sool/data/myProblem");
</script>

<!--[if lt IE 9]>
<script>
  JsAndCssUtil.importJs("/static/js/modernizr-2010.07.16dev");
  JsAndCssUtil.importJs("/static/js/amazeui.ie8polyfill.min");
</script>
<![endif]-->

<!--单个列表内的所有数据模板-->
<script id="article_template" type="text/x-handlebars-template">

  {{#each this}}
    <div class="question-item-container">
    <a class="a" href="{{qa_link}}" sttatus="{{status}}" pk_sool_question="{{pk_sool_question}}">
      <span class="am-title blog-title">
        {{question_title}}
      </span>
    </a>
      <p class="blog-g-text">
        <span class="doc-mq-font">描述：</span>
          {{short_description}}
      </p>
    <ul class="question-item-data" >
      <li>
        <i class="fa fa-clock-o am-icon-sm"></i>
        <span class="doc-time-time">发布时间：</span>
        <span class="doc-time-text">{{submissiontime}}</span>
      </li>
      <li>
        <i class="fa fa-comment-o"></i>
        <span class="doc-time-time">回答数：</span>
        <span class="doc-time-text">{{answercount}}</span>
      </li>
    </ul>
    </div>
    {{/each}}

</script>

<!--相似问题的加载-->
<script id="li_template" type="text/x-handlebars-template">
<ul class="short-list">
  {{#each this}}
    <li class="am-article-meta blog-meta">
      <a href="{{qa_link}}" class="am-text-truncate blog-meta-text" status="{{status}}" pk_sool_question="{{pk_sool_question}}" >{{similaryQuestion_length question_title}}</a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

      <span class="am-fr"><i class="fa fa-comment-o am-xiangsi"></i> &nbsp;{{answercount}}</span>
    </li>
  {{/each}}
</ul>
</script>

<!--问题状态选定的控制-->
<!--<script type="  text/javascript" src="assets/sool/data/myProblem.js"></script>-->

<script>
  $(document).ready(function(){
    searchClick();
    navBarStyle();
    similarQuestion();

    /*获取hash*/
    var status_type = window.location.hash;
    WebSite.debug("页面加载就执行"+status_type);
    if (status_type == "") {
      WebSite.debug("all这个页面的queryDataByStatus");
      findAll();
    }
    else {
      queryDataByStatus();
    }
  });

  $(window).on("hashchange", function(){
    queryDataByStatus();
  });
</script>
</body>
</html>
